/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MYData.Entity.SystemModels;

namespace MYData.Entity.DomainModels
{
    [Entity(TableCnName = "工作流程表",TableName = "tb_project_workflowtable")]
    public partial class tb_project_workflowtable:BaseEntity
    {
        /// <summary>
       ///主键
       /// </summary>
       [Key]
       [Display(Name ="主键")]
       [MaxLength(64)]
       [Column(TypeName= "nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string id { get; set; }=new Snowflake.Core.IdWorker(1,1).NextId().ToString();

       /// <summary>
       ///工作流程表的id
       /// </summary>
       [Display(Name ="工作流程表的id")]
       [MaxLength(36)]
       [Column(TypeName="uniqueidentifier")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public Guid workFlowId { get; set; }

       /// <summary>
       ///工作流程表的名称
       /// </summary>
       [Display(Name ="工作流程表的名称")]
       [MaxLength(200)]
       [Column(TypeName="nvarchar(200)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string workName { get; set; }

       /// <summary>
       ///项目表主键id
       /// </summary>
       [Display(Name ="项目表主键id")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string projectTableKey { get; set; }

       /// <summary>
       ///表名
       /// </summary>
       [Display(Name ="表名")]
       [MaxLength(200)]
       [Column(TypeName="nvarchar(200)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string projectTable { get; set; }

       /// <summary>
       ///业务名称
       /// </summary>
       [Display(Name ="业务名称")]
       [MaxLength(200)]
       [Column(TypeName="nvarchar(200)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string workTableName { get; set; }

       /// <summary>
       ///当前审批节点
       /// </summary>
       [Display(Name ="当前审批节点")]
        [MaxLength(100)]
        [Column(TypeName= "nvarchar(100)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string currentOrderId { get; set; }

       /// <summary>
       ///审批状态
       /// </summary>
       [Display(Name ="审批状态")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int auditStatus { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string creator { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? createDate { get; set; }

       /// <summary>
       ///最后修改人
       /// </summary>
       [Display(Name ="最后修改人")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string modifier { get; set; }

       /// <summary>
       ///最后修改时间
       /// </summary>
       [Display(Name ="最后修改时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? modifierTime { get; set; }

       /// <summary>
       ///是否删除(0代表未删除1代表已删除)
       /// </summary>
       [Display(Name ="是否删除(0代表未删除1代表已删除)")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? isDelete { get; set; }

       
    }
}